<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="UTF-8">
        <title>Hello</title>
    </head>
    <body>
    赋值:<span th:text="${userName}">userName</span><br/>
    拼接:<span th:text="'Hello' + ${userName} +'!'">Hello userName!</span><br/>
    拼接:<span th:text="|Hello ${userName}!|">Hello userName!</span><br/>
    <h1>基本对象</h1>
<!--    <p th:text="${#request.getAttribute('test')}"></p>-->
    <p th:text="${test}"></p>
    <p th:text="${session.test}"></p>
    <h1>Utility对象</h1>
    <p th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}">2019-11-27 15:56:30</p>
<!--    创建当前时间,精确到天-->
    <p th:text="${#dates.createToday()}">2019-11-27</p>
    </body>
</html>